<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

	<c:if test="${comments.commentNoOriginal == null }">
		<div>
	</c:if>
	<c:if test="${comments.commentNoOriginal != null }">
		<div style="margin-left: 10px; border-left: 1px; border-left-color: blue; border-left-style: solid;">
	</c:if>
	<table width=100%>
		<tr>
			<td width="20%" class="lb_center" style="background: #FFA7A7">
			${comments.member.memberName }
			</td>
			<td width="20%" class="lb_center">${comments.updateDate }</td>
			<td width="20%" class="lb_center"><a
				href="javascript:commentReply(${comments.commentNo }">답글</a></td>
			<td width="20%" class="lb_center"><a
				href="javascript:commentPreModify(${comments.commentNo } )">수정</a></td>
			<td width="20%" class="lb_center"><a
				href="javascript:commentsRemove(${comments.commentNo }, ${comments.boardItemsNo })">삭제</a></td>
		</tr>
		<tr>
			<td class="lb_center" colspan="5"><pre>
					${comments.commentView } 
				</pre></td>
		</tr>
		<tr>
			<td colspan="5">
				<div id="commentsModify_${comments.commentNo }"
					style="margin: 3px 2px 0px 10px;"></div>
			</td>
		</tr>
		<tr>
			<td colspan="5">
				<div id="commentsReply_${comments.commentNo }" style="display: none; margin: 3px 2px 0px 20px;">
					<form id="commentsReplyForm_${comments.commentNo }">
						<input type="hidden" name="memberId" value="${login.memberId }">
						<input type="hidden" name="boardItemsNo" value=" ${boarditems.boarditemsNo}">
						<input type="hidden" name="commentNoOriginal" value="${comments.commentNo }">
						<input type="hidden" name="commentLineNo" value="${comments.commentLineNo }">
						
						<table width="100%" border="1" cellspacing="0" cellpadding="0">
							<tr>
								<td width="5%" class="lb_center" style="background: #1DDB16"><h4>답글</h4></td>
								<td width="80%" class="lb_center">
								<textarea id="itemcommentAdd" name="commentView" rows="3"
									style="width: 100%;">${comments.commentsView }</textarea></td>
								<td width="15%" class="lb_center"><input type="button" value="답글입력"
									style="height: 50px; width: 100px; font-size: 25px;"
									onclick="commentsReplyAdd(${comments.commentNo }, ${boarditems.boarditemsNo};"></td>
							</tr>
						</table>

					</form>
				</div>
			</td>
		</tr>
	</table>
</div>